package com.jule.miaozhuapc.dao;

import java.util.List;

import org.springframework.data.repository.Repository;

import com.jule.miaozhuapc.domain.WawaGameRecord;

public interface GameRecordDao extends Repository<GameRecordDao, Long>{
	
	/**
	 *  查询 用户游戏记录
	 * @param userId
	 * @param type  成功 or 失败 
	 * @param page  分页
	 * @return
	 */
	public List<WawaGameRecord> findAllByUserId(Long userId, boolean type,  int page, int size);
	
	
	
	public void update(WawaGameRecord gameRecord);
	
	public  WawaGameRecord findById(Long id);
}
